package edu.tongji.jiaowu.service.impl;

import java.util.List;
import com.tongji.quickCRUDQ.service.impl.BaseManagerImpl;
import edu.tongji.jiaowu.dao.CourseDao;
import edu.tongji.jiaowu.service.CourseManager;
import com.tongji.quickCRUDQ.model.CommonBean;

public class CourseManagerImpl extends BaseManagerImpl implements CourseManager {
	private CourseDao courseDao;

	public CommonBean createCourse() {
		return courseDao.createCourse();
	}

	/*
	 public CommonBean findCourses(String refid) {
	 return courseDao.findCourses(refid);
	 }
	 */
	public CommonBean findCourseById(String id) {
		return courseDao.findCourseById(id);
	}

	public CommonBean findAllCourses() {
		return courseDao.findAllCourses();
	}

	public void insertCourse(CommonBean courseBean) {
		courseDao.insertCourse(courseBean);
	}

	public CommonBean findCourseByNo(String courseNo) {
		return courseDao.findCourseByNo(courseNo);
	}

	public CourseDao getCourseDao() {
		return courseDao;
	}

	public void setCourseDao(CourseDao courseDao) {
		this.courseDao = courseDao;
	}

}
